package com.d2.modules.system.dept.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.d2.modules.system.dept.entity.Dept;

import java.util.List;

public interface IDeptService extends IService<Dept> {
    void add(Dept dept);

    void deleteById(Long id);

    void update(Dept dept);

    List<Dept> tree();

    List<Dept> tree(Long id);

    List<Dept> tree(Long id, Long exclude);

    List<Dept> updateTreeView(Long id);
}
